<%@page import="board.BoardVo"%>
<%@page import="board.Board"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script>
function btnList(){
	location.href="index2.jsp?inc_center=./board/list.jsp";
}
</script>
</head>
<body>
<jsp:useBean id="boardVo" class="board.BoardVo"/>
<jsp:setProperty property="*" name="boardVo"/>
<%
Board bb = new Board();
bb.setVo(boardVo);
BoardVo vo = bb.view();
%>
<center><h1>답글 달기</h1></center>
<br/><br/>
<form name="view_frm" method="post" action="index2.jsp?inc_center=./board/rep_register_result.jsp" enctype="multipart/form-data">
	시리얼 : <%=vo.getSerial()%><br/>
	아이디 : <input type="text" name="mid" value="<%=vo.getMid()%>"><br/>
	암&emsp;호 : <input type="text" name="pwd" value="<%=vo.getPwd()%>"><br/>
	제&emsp;목 : <input type="text" name="subject" value="<%=vo.getSubject()%>"><br/>
	내&emsp;용 : <textarea rows="5" cols="30" name="content"><%=vo.getContent()%></textarea><br/>
	파&emsp;일 : <input type="file" name="filename"><br/>
	조회수 : <%=vo.getHit()%><br/><br/>
	
	<input type="submit" value="저장" id="btnRepResult">
	<input type="button" value="목록" id="btnList" onclick="btnList()">
	<input type="hidden" name="part" value="<%=(String)session.getAttribute("part")%>">
	<input type="hidden" name="deep" value="<%=boardVo.getDeep()%>">
	<input type="hidden" name="grp" value="<%=boardVo.getGrp()%>">
</form>
<script>
init();
</script>
</body>
</html>